import { get, post } from '../api'

export function getCodeConfigList(query, headers) {
  return post('/api/generator/list', query, headers)
}

export function asyncTables() {
  return get('/api/generator/async')
}

export function getColumnsByTableName(tableName) {
  return get('/api/generator/columns', { tableName: tableName })
}

export function execute(params, headers) {
  return post('/api//generator/execute', params, headers)
}
